import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/list_ledger_entity.g.dart';


@JsonSerializable()
class ListLedgerEntity {

	ListLedgerEntity();

	factory ListLedgerEntity.fromJson(Map<String, dynamic> json) => $ListLedgerEntityFromJson(json);
	String? countId;
	int? current;
	int? maxLimit;
	bool? optimizeCountSql;
	List<ListLedgerOrders>? orders;
	int? pages;
	List<ListLedgerRecords>? records;
	bool? searchCount;
	int? size;
	int? total;

	Map<String, dynamic> toJson() => $ListLedgerEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class ListLedgerOrders {

	ListLedgerOrders();

	factory ListLedgerOrders.fromJson(Map<String, dynamic> json) => $ListLedgerOrdersFromJson(json);
	bool? asc;
	String? column;

	Map<String, dynamic> toJson() => $ListLedgerOrdersToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class ListLedgerRecords {

	ListLedgerRecords();

	factory ListLedgerRecords.fromJson(Map<String, dynamic> json) => $ListLedgerRecordsFromJson(json);
	String? checkAcceptPerson;
	String? checkAcceptTime;
	String? dangerLevel;
	String? dangerManageDeadline;
	String? dangerManageType;
	String? dangerName;
	String? dangerSrc;
	String? dangerState;
	String? hazardCategory;
	String? hazardDangerType;
	String? id;
	String? liablePerson;
	String? registTime;
	String? registrant;
	String? riskEventName;
	String? riskMeasureDesc;
	String? riskObjectName;
	String? riskUnitName;

	Map<String, dynamic> toJson() => $ListLedgerRecordsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
